//
//  UITestViewController.m
//  UITest
//

#import "UITestViewController.h"

@implementation UITestViewController

- (void)viewDidLoad {

    [super viewDidLoad];

	CGPoint frameCenter = self.view.center;
	float width = 50.0;
	float height = 50.0;
	
	CGRect viewFrame = CGRectMake(frameCenter.x-width, frameCenter.y-height, width*2, height*2);
	
	UIView *myView = [[UIView alloc] initWithFrame:viewFrame];
	myView.backgroundColor = [UIColor blueColor];
	
	[[self view] addSubview:myView];
	
	[UIView beginAnimations:nil context:NULL];
	
	[UIView setAnimationDuration:1.0];
	viewFrame = CGRectInset(viewFrame, -width, -height);
	[myView setFrame:viewFrame];
	
	[UIView commitAnimations];
	
	[myView release];
}

- (void)dealloc {
    [super dealloc];
}

@end
